package com.jnshu.dao;//package com.jnshu.dao;

import com.jnshu.pojo.UserMessageRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMessageRelationMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UserMessageRelation record);

    //增加数据
    int insertSelective(UserMessageRelation record);

    UserMessageRelation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserMessageRelation record);

    int updateByPrimaryKey(UserMessageRelation record);

    UserMessageRelation selectId(@Param("userId") Long userId, @Param("messageId")Long messageId);
}